package com.yami.shop.bean.app.param;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author LHD on 2020/03/02
 */
@Data
@Schema(description= "会员支付参数")
public class PayUserParam {

    @NotBlank(message = "会员等级id不能为空")
    @Schema(description = "会员等级id，当id=-1时，充值自定义金额", required = true)
    private Long id;

    @Schema(description = "二维码携带的参数")
    private String scene;

    @Schema(description = "支付方式 (1:微信小程序支付 2:支付宝 3微信扫码支付 4 微信h5支付 5微信公众号支付 6支付宝H5支付 7支付宝APP支付 8微信APP支付 9余额支付 17新生支付支付宝H5支付 18新生支付云闪付H5支付 19新生支付支付宝生活号支付 20新生支付微信公众号支付 21新生支付快捷支付下单)", required = true)
    private Integer payType = 1;

    @Schema(description = "支付完成回跳地址")
    private String returnUrl;

    @Schema(description = "自定义充值金额")
    private Double customRechargeAmount;

    @Schema(description = "用户等级id/余额支付id")
    private Long orderIds;

    @Schema(description = "支付单号")
    private String payNo;

    @Schema(description = "需要支付价格")
    private Double needAmount;

    @Schema(description = "新生快捷支付下单参数")
    private XsFastPaymentOneParam xsFastPaymentOneParam;

}
